export function timeFormate(time,dateType='Y-M-D h:m:s') {
	var d = new Date(time)
	console.log(d)
	console.log((d.getMonth() + 1))
	var Y = d.getFullYear()
	var M = (d.getMonth() + 1)>9?(d.getMonth() + 1):'0'+(d.getMonth() + 1)
	var D = d.getDate()>9?d.getDate():'0'+d.getDate()
	var h = d.getHours()>9?d.getHours():'0'+d.getHours()
	var m = d.getMinutes()>9?d.getMinutes():'0'+d.getMinutes()
	var s = d.getSeconds()>9?d.getSeconds():'0'+d.getSeconds()
	var result =''
	result=dateType.replace('Y',Y)
	result=result.replace('M',M)
	result=result.replace('D',D)
	result=result.replace('h',h)
	result=result.replace('m',m)
	result=result.replace('s',s)
	return result
}